
package com.simple.mqtt.server.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 订阅模型，用于存储
 *
 * @author L.cm
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Subscribe implements Serializable {

    private String topicFilter;
    private String clientId;
    private int mqttQoS;

    public Subscribe(String clientId, int mqttQoS) {
        this.clientId = clientId;
        this.mqttQoS = mqttQoS;
    }
}
